package com.runfast.waimai.service;

import com.runfast.common.service.IService;
import com.runfast.waimai.dao.model.BaseUser;
import com.runfast.waimai.dao.model.BaseUserExample;
import org.springframework.data.domain.Pageable;

import java.util.List;
import java.util.Map;

public interface BaseUserService extends IService<BaseUser, Integer, BaseUserExample> {

    public BaseUser checkByUsername(String username);

    public BaseUser checkByUsername1(String username);

    /**
     * 用户管理的代理商id
     * */
    public List<Integer> queryAgentIdsByUser(BaseUser baseUser);

    public List<BaseUser> selectUserByExampleWithPageable(Map map);

    public Integer countUserByExample(Map map);

    List<BaseUser>  selectUsersByExampleWithPageable(Map<Object,Object> map);

    public Integer countUsersByExample(Map map);

}